package ssn.servicearea.vo;

import java.util.List;

import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.NotEmpty;

import egovframework.rte.fdl.string.EgovStringUtil;

import ssn.common.util.Util;
import ssn.common.vo.SearchVO;

/**
 * @author tkofs
 *
 */
@SuppressWarnings({"serial","unused"})
public class ServiceAreaVO extends SearchVO{
	private String ssa_area_key;			// 휴개소 키
	@NotEmpty(message="필수 입력 값 입니다.")
	private String ssa_area_name;			// 현장명
	private String ssa_area_addr;			// 소제지
	@NotEmpty(message="권역을 선택 하세요.")
	private String scc_code_key;			// 권역키
	@Pattern(regexp="^[0-9]+$", message="숫자만 입력하실수 있습니다.")
	private String ssa_area_capa = "0";			// 시설용량
	private String ssa_builder;				// 시공사
	private String ssa_build_date;			// 준공일자
	private String ssa_serv_sdate;			// 용역기간 시작
	private String ssa_serv_edate;			// 용역기간 종료
	private String ssa_area_tel;			// 전화번호
	private String ssa_area_fax;			// 팩스번호
	private String ssa_ect_info;			// 기타정보
	private String ssa_flag_yn;				// 상태
	@NotEmpty(message="필수 입력 값 입니다.")
	@Pattern(regexp="^[0-9a-zA-Z_-]+$", message="한글 아이디는 입력하실수 없습니다.")
	private String ssa_login_id;			// 로그인 아이디
	private String ssa_pass_word;			// 로그인 패스워드
	private String ssa_user_auth;			// 권한

	private String scc_zone_aname;			// 권역 이름
	
	@NotEmpty(message="담당자를 선택 하세요.")
	private String ssa_admin_id;			// 담당자 아이디
	private String ssa_admin_name;			// 담당자 이름
	private String ssa_admin_tel;			// 담당자 전화번호
	private String ssa_admin_hp;			// 담당자 HP
	
	private List<ServiceAreaManagerVO> serviceAreaManagerVOList;
	
	private String ssa_area_fax1;
	private String ssa_area_fax2;
	private String ssa_area_fax3;
	
	private String ssa_area_tel1;
	private String ssa_area_tel2;
	private String ssa_area_tel3;
	
	
	public String getSsa_admin_hp() {
		String[] atelArray = Util.getTelArray(ssa_admin_hp);
		return atelArray[0]+"-"+atelArray[1]+"-"+atelArray[2];
	}
	public void setSsa_admin_hp(String ssa_admin_hp) {
		this.ssa_admin_hp = ssa_admin_hp;
	}
	public String getSsa_area_fax1() {
		return ssa_area_fax1;
	}
	public void setSsa_area_fax1(String ssa_area_fax1) {
		this.ssa_area_fax1 = ssa_area_fax1;
	}
	public String getSsa_area_fax2() {
		return ssa_area_fax2;
	}
	public void setSsa_area_fax2(String ssa_area_fax2) {
		this.ssa_area_fax2 = ssa_area_fax2;
	}
	public String getSsa_area_fax3() {
		return ssa_area_fax3;
	}
	public void setSsa_area_fax3(String ssa_area_fax3) {
		this.ssa_area_fax3 = ssa_area_fax3;
	}
	public String getSsa_area_tel1() {
		return ssa_area_tel1;
	}
	public void setSsa_area_tel1(String ssa_area_tel1) {
		this.ssa_area_tel1 = ssa_area_tel1;
	}
	public String getSsa_area_tel2() {
		return ssa_area_tel2;
	}
	public void setSsa_area_tel2(String ssa_area_tel2) {
		this.ssa_area_tel2 = ssa_area_tel2;
	}
	public String getSsa_area_tel3() {
		return ssa_area_tel3;
	}
	public void setSsa_area_tel3(String ssa_area_tel3) {
		this.ssa_area_tel3 = ssa_area_tel3;
	}
	public String getScc_zone_aname() {
		return scc_zone_aname;
	}
	public void setScc_zone_aname(String scc_zone_aname) {
		this.scc_zone_aname = scc_zone_aname;
	}
	public String getSsa_admin_tel() {
		return ssa_admin_tel;
	}
	public void setSsa_admin_tel(String ssa_admin_tel) {
		this.ssa_admin_tel = ssa_admin_tel;
	}
	public String getSsa_admin_id() {
		return ssa_admin_id;
	}
	public void setSsa_admin_id(String ssa_admin_id) {
		this.ssa_admin_id = ssa_admin_id;
	}
	public String getSsa_admin_name() {
		return ssa_admin_name;
	}
	public void setSsa_admin_name(String ssa_admin_name) {
		this.ssa_admin_name = ssa_admin_name;
	}
	public List<ServiceAreaManagerVO> getServiceAreaManagerVOList() {
		return serviceAreaManagerVOList;
	}
	public void setServiceAreaManagerVOList(List<ServiceAreaManagerVO> serviceAreaManagerVOList) {
		this.serviceAreaManagerVOList = serviceAreaManagerVOList;
	}
	public String getSsa_area_key() {
		return ssa_area_key;
	}
	public void setSsa_area_key(String ssa_area_key) {
		this.ssa_area_key = ssa_area_key;
	}
	public String getSsa_area_name() {
		return ssa_area_name;
	}
	public void setSsa_area_name(String ssa_area_name) {
		this.ssa_area_name = ssa_area_name;
	}
	public String getSsa_area_addr() {
		return ssa_area_addr;
	}
	public void setSsa_area_addr(String ssa_area_addr) {
		this.ssa_area_addr = ssa_area_addr;
	}
	public String getScc_code_key() {
		return scc_code_key;
	}
	public void setScc_code_key(String scc_code_key) {
		this.scc_code_key = scc_code_key;
	}
	public String getSsa_area_capa() {
		return ssa_area_capa;
	}
	public void setSsa_area_capa(String ssa_area_capa) {
		this.ssa_area_capa = ssa_area_capa;
	}
	public String getSsa_builder() {
		return ssa_builder;
	}
	public void setSsa_builder(String ssa_builder) {
		this.ssa_builder = ssa_builder;
	}
	public String getSsa_build_date() {
		return ssa_build_date;
	}
	public void setSsa_build_date(String ssa_build_date) {
		this.ssa_build_date = ssa_build_date;
	}
	public String getSsa_serv_sdate() {
		return ssa_serv_sdate;
	}
	public void setSsa_serv_sdate(String ssa_serv_sdate) {
		this.ssa_serv_sdate = ssa_serv_sdate;
	}
	public String getSsa_serv_edate() {
		return ssa_serv_edate;
	}
	public void setSsa_serv_edate(String ssa_serv_edate) {
		this.ssa_serv_edate = ssa_serv_edate;
	}
	public String getSsa_area_tel() {
		return ssa_area_tel1+"-"+ssa_area_tel2+"-"+ssa_area_tel3;
	}
	public void setSsa_area_tel(String ssa_area_tel) {
		String[] atelArray = Util.getTelArray(ssa_area_tel);
		this.ssa_area_tel1 = atelArray[0];
		this.ssa_area_tel2 = atelArray[1];
		this.ssa_area_tel3 = atelArray[2];
		this.ssa_area_tel = ssa_area_tel;
	}
	public String getSsa_area_fax() {
		return ssa_area_fax1+"-"+ssa_area_fax2+"-"+ssa_area_fax3;
	}
	public void setSsa_area_fax(String ssa_area_fax) {
		String[] atelArray = Util.getTelArray(ssa_area_fax);
		this.ssa_area_fax1 = atelArray[0];
		this.ssa_area_fax2 = atelArray[1];
		this.ssa_area_fax3 = atelArray[2];
		this.ssa_area_fax = ssa_area_fax;
	}
	public String getSsa_ect_info() {
		return ssa_ect_info;
	}
	public void setSsa_ect_info(String ssa_ect_info) {
		this.ssa_ect_info = ssa_ect_info;
	}
	public String getSsa_flag_yn() {
		return ssa_flag_yn;
	}
	public void setSsa_flag_yn(String ssa_flag_yn) {
		this.ssa_flag_yn = ssa_flag_yn;
	}
	public String getSsa_login_id() {
		return ssa_login_id;
	}
	public void setSsa_login_id(String ssa_login_id) {
		this.ssa_login_id = ssa_login_id;
	}
	public String getSsa_pass_word() {
		return ssa_pass_word;
	}
	public void setSsa_pass_word(String ssa_pass_word) {
		this.ssa_pass_word = ssa_pass_word;
	}
	public String getSsa_user_auth() {
		return ssa_user_auth;
	}
	public void setSsa_user_auth(String ssa_user_auth) {
		this.ssa_user_auth = ssa_user_auth;
	}
	
	
}
